const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 用户token
  userObj: state => state.user.userObj, // 将分模块中的state 做一个getters属性
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  douCount: state => state.count * 2 // count的计算属性
}
export default getters
